# The module Element, includes all the page elements (icons, links, buttons,
# text_fields, checkboxes, select lists, dialog-boxes included in both Athlete tool and coaching tool)

module Element
  
    class CreateDeal
        # Required Fields
        def self.deal_name_text_field
            return $ie.text_field(:name,"dname")
        end
        def self.deal_product_family_select_list
            return $ie.select_list(:name,"this_prod_family_id")
        end
        def self.deal_market_select_list
            return $ie.select_list(:name,"market_classifier")
        end
        def self.deal_submarket_select_list
            return $ie.select_list(:name,"submarket_classifier")
        end
        def self.deal_type_select_list
            return $ie.select_list(:name,"type_classifier")
        end
        def self.deal_staff_select_list
            return $ie.select_list(:name,"this_staff_id")
        end
        def self.deal_primary_status_select_list
            return $ie.select_list(:name,"this_dstatus_id_1")
        end
        def self.deal_secondary_status_select_list
            return $ie.select_list(:name,"this_dstatus_id_2")
        end
        def self.deal_standing_id_select_list
            return $ie.select_list(:name,"this_standing_id")
        end
        def self.deal_close_date_text_field
            return $ie.text_field(:name,"close_date")
        end
        def self.deal_add_button
            return $ie.button(:value,"Add")
        end
        def self.deal_cancel_button
            return $ie.button(:value,"Cancel")
        end
        def self.deal_contacts_checkbox(n)
            return $ie.checkbox(:name=>"ci",:index=>n)
        end
    
    end
  
  
  
end





